// 路由
const Router=require('@koa/router')
const OrderGoodRouter=new Router({
  prefix:'/ordergood'
})
//导入中间件
const {OrderMsg}=require('../middelware/ordergoodmiddle')
OrderGoodRouter.get(['/:orderId/:goodId'],OrderMsg,ctx=>{
  if(ctx.result>0){
    ctx.body={code:1,message:"添加成功"}
  }else{
    ctx.body={code:0,message:"添加失败"}
  }
})
module.exports=OrderGoodRouter